package com.tbh.security5.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/home")
public class HomeController {

    @GetMapping("index")
    public String index() {
        return "index";
    }

    @PostMapping("login")
    public String login() {
        return "login";
    }
}
